//
//  MZYmyTableViewCell.m
//  WristWatch
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MZYmyTableViewCell.h"

@implementation MZYmyTableViewCell

- (void)dealloc {
    [_bigImageView release];
    
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    
    self.bigImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.bigImageView];
    [_bigImageView release];
    
    self.leftImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.leftImageView];
    self.leftImageView.layer.cornerRadius= 10;
    [self.leftImageView setClipsToBounds:YES];
    [_leftImageView release];
    
    self.centerImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.centerImageView];
    self.centerImageView.layer.cornerRadius= 10;
    [self.centerImageView setClipsToBounds:YES];
    [_centerImageView release];
    
    self.rightImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.rightImageView];
    self.rightImageView.layer.cornerRadius= 10;
    [self.rightImageView setClipsToBounds:YES];
    [_rightImageView release];
    
    self.contentView.backgroundColor = [UIColor colorWithRed:0.800 green:0.895 blue:0.845 alpha:1.000];
//    self.contentView.backgroundColor = [UIColor blackColor];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    
    
    self.leftImageView.frame = CGRectMake(0, self.contentView.frame.size.height / 8 * 6 - 15, self.contentView.frame.size.width / 3 - 10 / 3, self.contentView.frame.size.height / 4 + 10);
    
    self.centerImageView.frame = CGRectMake(self.contentView.frame.size.width / 3 - 10 / 3 + 5, self.contentView.frame.size.height / 8 * 6 - 15, self.contentView.frame.size.width / 3 - 10 / 3, self.contentView.frame.size.height / 4 + 10);
//    
    self.rightImageView.frame = CGRectMake(self.contentView.frame.size.width / 1.5 - 20 / 3 + 10, self.contentView.frame.size.height / 8 * 6 - 15, self.contentView.frame.size.width / 3 - 10 / 3, self.contentView.frame.size.height/ 4 + 10);
    
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
